package cn.liujinnan.tetris.constant;/*
 *
 * Copyright(c) 2021 by liujinnan.cn All rights Reserved.
 */

/**
 * @author LiuJinan
 * @date 2021-08-22 00:20
 */
public enum ExceptionEnum {

    // 配置错误
    /**
     * 配置异常采用A开头
     */
    A_CONFIG_FILE_NOT_EXIST("A001", "配置文件不存在"),

    A_CONFIG_KEY_NOT_EXIST("A002", "配置key不存在"),

    A_CONFIG_CAST_ERROR("A003", "配置值转换类型错误"),

    ;

    private final String code;
    private final String message;

    ExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
